package org.grow.tiny.controller;

import org.grow.tiny.service.UtilFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 2022/6/1
 */

@RestController
@RequestMapping("/tiny/micro")
public class MicroController {
    @Autowired
    private UtilFeign utilFeign;

    @GetMapping("/feignTest")
    public String feignTest() {
        System.out.println("tiny开始新增表单");
        String sh = utilFeign.codeGene("SH");
        System.out.println("远程调用结果：" + sh);
        return "tiny远程调用support " + sh;
    }
}
